package com.library.domain;


import com.library.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 商品交易记录表 mb_trading_record
 *
 * @author null
 * @date 2020-04-23
 * @blame Android Team
 */
public class MbTradingRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Integer id;
    /**
     * 会员ID
     */
    private Integer membersId;
    /**
     * 商品ID
     */
    private Integer goodsId;
    /**
     * 兑换数量
     */
    private Integer tradeNum;
    /**
     * 订单时间
     */
    private Date orderTime;
    /**
     * 订单状态
     */
    private Integer tradeStatus;
    /**
     * 交易价格
     */
    private Double tradePrice;
    /**
     * 订单编号
     */
    private String orderNo;
    /**
     * 操作时间
     */
    private Date createTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 扩展字段
     */
    private String ext;

    /**
     * 会员信息
     */
    private BoMembers members;

    /**
     * 商品信息
     */
    private MbGoods goods;


    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setMembersId(Integer membersId) {
        this.membersId = membersId;
    }

    public Integer getMembersId() {
        return membersId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setTradeNum(Integer tradeNum) {
        this.tradeNum = tradeNum;
    }

    public Integer getTradeNum() {
        return tradeNum;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setTradeStatus(Integer tradeStatus) {
        this.tradeStatus = tradeStatus;
    }

    public Integer getTradeStatus() {
        return tradeStatus;
    }

    public void setTradePrice(Double tradePrice) {
        this.tradePrice = tradePrice;
    }

    public Double getTradePrice() {
        return tradePrice;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getExt() {
        return ext;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("membersId", getMembersId())
                .append("goodsId", getGoodsId())
                .append("tradeNum", getTradeNum())
                .append("orderTime", getOrderTime())
                .append("tradeStatus", getTradeStatus())
                .append("tradePrice", getTradePrice())
                .append("orderNo", getOrderNo())
                .append("createTime", getCreateTime())
                .append("remark", getRemark())
                .append("ext", getExt())
                .toString();
    }

    public MbGoods getGoods() {
        return goods;
    }

    public void setGoods(MbGoods goods) {
        this.goods = goods;
    }

    public BoMembers getMembers() {
        return members;
    }

    public void setMembers(BoMembers members) {
        this.members = members;
    }
}
